<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" isELIgnored="false"%>
<%
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
        + request.getContextPath() + "/";
%>
<!DOCTYPE html>
<html>
<head>
	<base href="<%=basePath%>">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<title>机场跑道异物监测管理平台</title>
	<link rel="shortcut icon" type="image/x-icon" sizes="16x16" href="resources/img/casc-icon.ico">
	<script src="resources/js/jquery-3.5.1.js"></script>
	<script src="resources/js/bstable/js/bootstrap.min.js "></script>
    <link rel="stylesheet" href="resources/js/bstable/css/bootstrap.min.css">
    
    <script type="text/javascript">
    $(function(){

    	let loginName;
    	/* 系统管理 */
		$("#btnSysStatus").click(function() {
			console.log("SysStatus! ");
			loginName = $('.text-info').html();
			window.location="query?loginName=" + loginName;
		});
		$("#btnSysDataSave").click(function() {
			console.log("SysDataSave! ");
			loginName = $('.text-info').html();
			window.location="query?loginName=" + loginName;
		});	
    	
    	/* 设备管理 */
		$("#btnDevLst").click(function() {
			console.log("DevLst! ");
			loginName = $('.text-info').html();
			window.location="setting?loginName=" + loginName;
		});	 
    	
    	/* 用户管理 */
		$("#btnUsrLst").click(function() {
			console.log("UsrLst! ");
			loginName = $('.text-info').html();
			window.location="users?loginName=" + loginName;
		});	 
    	
    	
    	
    	
    	
    });
    </script>
</head>

<body>
    <!-- 导航条 -->
    <nav class="navbar navbar-inverse">
        <div class="container-fluid">
          <!-- Brand and toggle get grouped for better mobile display -->
          <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
              <span class="sr-only">Toggle navigation</span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
              <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="javascript:void(0)">机场跑道异物监测系统管理 <span class="badge">v1.0</span></a>
          </div>
      
          <!-- Collect the nav links, forms, and other content for toggling -->
          <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">

            <ul class="nav navbar-nav navbar-right">
              <li><a href="#">欢迎：<span class="text-info">${loginName}</span></a></li>
              <li class="dropdown">
                <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">用户中心 <span class="caret"></span></a>
                <ul class="dropdown-menu">
                  <li><a href="#">修改信息</a></li>
                  <li role="separator" class="divider"></li>
                  <li><a href="#">退出登录</a></li>
                  <li role="separator" class="divider"></li>
                </ul>
              </li>
            </ul>
          </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
      </nav>
    <!-- 页面主题内容 -->
    <div class="container-fluid">
        
        <!-- 栅格系统 -->
        <div class="row">
            <!-- 菜单 -->
            <div class="col-sm-2">
                <div class="panel-group" id="accordion" role="tablist" aria-multiselectable="true">
                    <div class="panel panel-default">
                      <div class="panel-heading" role="tab" id="headingOne">
                        <h4 class="panel-title">
                          <a role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseOne" aria-expanded="true" aria-controls="collapseOne">
                            <span class="glyphicon glyphicon-tasks"></span> 系统管理
                          </a>
                        </h4>
                      </div>
                      <div id="collapseOne" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingOne">
                        <div class="panel-body">
                            <ul class="list-group">
                                <li class="list-group-item"><button class="btn btn-primary" id="btnSysStatus">系统状态</button></li>
                                <li class="list-group-item"><button class="btn btn-primary" id="btnSysDataSave">数据管理</button></li>
                            </ul>
                        </div>
                      </div>
                    </div>

                    <div class="panel panel-default">
                      <div class="panel-heading" role="tab" id="headingTwo">
                        <h4 class="panel-title">
                          <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseTwo" aria-expanded="false" aria-controls="collapseTwo">
                            <span class="glyphicon glyphicon-th-large"></span> 设备组管理
                          </a>
                        </h4>
                      </div>
                      <div id="collapseTwo" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingTwo">
                        <div class="panel-body">
                            <ul class="list-group">
                                <li class="list-group-item"><button class="btn btn-primary" id="btnDevLst">设备列表</button></li>
                            </ul>
                        </div>
                      </div>
                    </div>

                    <div class="panel panel-default">
                      <div class="panel-heading" role="tab" id="headingThree">
                        <h4 class="panel-title">
                          <a class="collapsed" role="button" data-toggle="collapse" data-parent="#accordion" href="#collapseThree" aria-expanded="false" aria-controls="collapseThree">
                            <span class="glyphicon glyphicon-user"></span> 用户管理
                          </a>
                        </h4>
                      </div>
                      <div id="collapseThree" class="panel-collapse collapse" role="tabpanel" aria-labelledby="headingThree">
                        <div class="panel-body">
                            <ul class="list-group">
                                <li class="list-group-item"><button class="btn btn-primary" id="btnUsrLst">用户列表</button></li>
                            </ul>
                        </div>
                      </div>
                    </div>

                </div>

            </div>

            <!-- 页面中心内容 -->
            <div class="col-sm-10">
                <!-- 巨幕 -->
                <div class="jumbotron">
                    <h1>您好！</h1>
                    <p>欢迎进入机场异物监测系统管理后台</p>
                    <p><a class="btn btn-primary btn-lg" href="http://www.calt.com/" role="button">了解更多</a></p>
                </div>
                <!-- 可关闭警告框 -->

                <!-- 面板 -->
                <div class="panel panel-default">
                    <div class="panel-heading"><span class="glyphicon glyphicon-wrench"></span> 系统状态</div>
                    <div class="panel-body">
                        <label for="">CPU使用率：</label>
                        <div class="progress">
                            <div class="progress-bar progress-bar-success progress-bar-striped" role="progressbar" aria-valuenow="40" aria-valuemin="0" aria-valuemax="100" style="width: 40%">
                                40% <span class="sr-only">40% Complete (success)</span>
                            </div>
                        </div>
                        <label for="">磁盘使用率：</label>
                        <div class="progress">
                            <div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="20" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
                                20% <span class="sr-only">20% Complete</span>
                            </div>
                        </div>
                        <label for="">内存使用率：</label>
                        <div class="progress">
                            <div class="progress-bar progress-bar-warning progress-bar-striped" role="progressbar" aria-valuenow="60" aria-valuemin="0" aria-valuemax="100" style="width: 60%">
                                60% <span class="sr-only">60% Complete (warning)</span>
                            </div>
                        </div>
                        <label for="">数据库使用率：</label>
                        <div class="progress">
                            <div class="progress-bar progress-bar-info progress-bar-striped" role="progressbar" aria-valuenow="80" aria-valuemin="0" aria-valuemax="100" style="width: 20%">
                                20% <span class="sr-only">80% Complete (danger)</span>
                            </div>
                        </div>
                    </div>
                </div>
            </div>


        </div>


    </div>

</body>

</html>